﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace LoneWolf
{
    public partial class RSSWebBrowser : Form
    {
        string torrentitle;
      /*  string torrentUrl;
        public string TorrentUrl
        {
            get { return torrentUrl; }

        }*/
        public RSSWebBrowser()
        {
            InitializeComponent();
        }
        public RSSWebBrowser(string url,string torrenttitle)
        {
            InitializeComponent();
            if(string.IsNullOrEmpty(url)==false )
            {
                webBrowser1.Navigate(url);
                torrentitle = torrenttitle;
                
            }
        }


        public RSSWebBrowser(string dochtml)
        {
            InitializeComponent();
            if (string.IsNullOrEmpty(dochtml) == false)
            {
                webBrowser1.DocumentText = dochtml;

            }
        }

       

        private void webBrowser1_LocationChanged(object sender, EventArgs e)
        {
            try
            {
                this.Text = webBrowser1.DocumentTitle;


            }
            catch (Exception ex)
            {
                Core.errorreport(ex);

            }
        }
    }
}
